package com.tsd.jxc.buy.dao;

import com.tsd.common.vo.BatchDeleteLogicVo;
import com.tsd.core.vo.PageBean;
import com.tsd.jxc.buy.entity.JxcBuyOrderDetailSod;
import com.tsd.jxc.buy.entity.JxcBuyOrderDetailSodExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcBuyOrderDetailSodMapper
 *
 * @author Hillpool
 * @date 2022/12/12 11:23:08
 */
public interface JxcBuyOrderDetailSodMapper {

    JxcBuyOrderDetailSod selectByPrimaryKey(Long id);

    JxcBuyOrderDetailSodExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(JxcBuyOrderDetailSod record);

    int insertSelective(JxcBuyOrderDetailSod record);

    int insertList(@Param("list") List<JxcBuyOrderDetailSodExt> list);

    int updateByPrimaryKey(JxcBuyOrderDetailSod record);

    int updateByPrimaryKeySelective(JxcBuyOrderDetailSod record);

    int updateList(@Param("list") List<JxcBuyOrderDetailSodExt> list);

    List<JxcBuyOrderDetailSodExt> selectByEntity(JxcBuyOrderDetailSodExt record);

    List<JxcBuyOrderDetailSodExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcBuyOrderDetailSodExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcBuyOrderDetailSodExt> selectByParams(@Param("params") Map<String, Object> params);

    int deleteLogicByIdList(BatchDeleteLogicVo logicVo);

    int deleteLogicByBuyOrderList(BatchDeleteLogicVo logicVo);
}